package com.base.user.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.base.user.entity.Member;

@Component("memberDao")
public interface MemberDao
{
	/**
	 * 保存
	 * @param member
	 */
	void save(Member member);
	/**
	 * 更新
	 * @param member
	 */
	void update(Member member);
	/**
	 * 通过ID删除
	 * @param id
	 */
	void deleteById(long id);
	/**
	 * 通过ID 查询
	 * @param id
	 * @return
	 */
	Member getById(long id);
	/**
	 * 多查询
	 * @param params
	 * @return
	 */
	List<Long> query(Map<String, Object> params);
	/**
	 * 统计
	 * @param params
	 * @return
	 */
	int count(Map<String, Object> params);
	/**
	 * 多条件查询
	 * @param params
	 * @return
	 */
	Member getByMap(Map<String, Object> params);	
}
